import React from 'react';

interface IIcon {
	classname?: string;
	styles?: any;
	onClick?: (e: any) => void;
	onMouseDown?: (event: React.MouseEvent<HTMLElement, MouseEvent>) => void;
}

const index = (props: IIcon) => {
	const { classname = '', onClick, styles } = props;
	const classNames = `iconfont ${classname}`;
	return (
		<div>
			<span className={classNames} onClick={e => onClick && onClick(e)} style={styles}></span>
		</div>
	);
};

export default index;
